package com.sloera.lambda.service.impl;

import com.sloera.lambda.Employee;
import com.sloera.lambda.service.MyPredicate;

/**
 * @author sloera
 * @create 2020/5/10
 */
public class FilterEmployeeByAge<T> implements MyPredicate<Employee> {
    @Override
    public boolean test(Employee employee) {
        return employee.getAge() >= 35;
    }
}
